package kebapp.test;


import android.app.TabActivity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class tab extends TabActivity  {
 TabHost mTabHost;
 FrameLayout mFrameLayout;

 /** Called when the activity is first created.*/
 @Override
 public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main_tab);
    mTabHost = getTabHost();
    
    //primo tab
   // mTabHost.addTab(mTabHost.newTabSpec("tab_test2").setIndicator("Add Kebab").setContent(R.id.textview2));
    Resources res = getResources();
    TabHost tabHost = getTabHost();  // The activity TabHost
    TabHost.TabSpec spec;  // Resusable TabSpec for each tab
    Intent intent;  // Reusable Intent for each tab
     
     intent = new Intent().setClass(this, KebappActivity.class);
     spec = tabHost.newTabSpec("").setIndicator("Map",res.getDrawable(android.R.drawable.ic_dialog_map)).setContent(intent);
     
     tabHost.addTab(spec);
     
     intent = new Intent().setClass(this, list.class);
     spec = tabHost.newTabSpec("").setIndicator("Add",res.getDrawable(android.R.drawable.ic_dialog_info)).setContent(intent);
  
     tabHost.addTab(spec);
     
   
     
    
     
    
     
    
     tabHost.setCurrentTab(0);
 
 }
}
